use std::sync::Arc;

use axum::{routing::get, Router};

use crate::{app::AppState, handler::heart_router};
pub fn init_router(state: &Arc<AppState>) -> Router {
    let dir_router = Router::new()
        .route("/", get(heart_router::test).post(heart_router::test))
        .with_state(state.clone());
    dir_router
}
